Add Levenshtein distance implementation
authorDavid Davidović <geosoft.corp@gmail.com>
Wed, 24 Dec 2014 03:27:07 +0000 (04:27 +0100)
committerDavid Davidović <geosoft.corp@gmail.com>
Wed, 24 Dec 2014 03:53:27 +0000 (04:53 +0100)
commit03f2a590c21797db03239545f21eb99ec0b229cf
treed85a6dee8f4d871e33d3ab3d54013959a4bb4d20
parentbb9174de62f3eb1ddfea7e14257a72ddb269f321
Add Levenshtein distance implementation

Copy lev_distance.rs verbatim from Rust since str::lev_distance has been
deprecated by rust-lang/rust@9b99436 with no replacement and change code
to use it instead of the deprecated function
src/bin/cargo.rs
src/cargo/util/lev_distance.rs [new file with mode: 0644]
src/cargo/util/mod.rs